package com.springboot.cloud.demos.producer.service;

import com.springboot.cloud.demos.entity.param.MomentSupportQueryParam;
import com.springboot.cloud.demos.entity.po.MomentSupport;

import java.util.List;
import java.util.Map;

public interface IMomentSupportService {
    /**
     * 获取
     *
     * @param id
     * @return
     */
    MomentSupport get(String id);

    /**
     * 新增
     *
     * @param momentSupport
     * @return
     */
    boolean add(MomentSupport momentSupport);

    /**
     * 查询
     *
     * @return
     */
    List<MomentSupport> query(MomentSupportQueryParam param);

    /**
     * 查询
     *
     * @return
     */
    MomentSupport queryByUser(String userId, Integer type,String momentId);

    /**
     * /**
     * 更新信息
     *
     * @param momentSupport
     */
    boolean update(MomentSupport momentSupport);

    /**
     * 根据id删除
     *
     * @param id
     */
    boolean delete(String id);

    List<Map<String, Object>> querySignUpList(String momentId);
}
